"""
向学员系统中添加多个初中生。
"""
from homework.Student import *
from homework.StudentManange import *
if __name__ == '__main__':
    stu1 = JuniorStudent("justin", 90)
    stu2 = JuniorStudent("jk", 90)
    stu3 = JuniorStudent("Ding", 88)
    stu4 = JuniorStudent("V", 89)

    # 添加学生到学生管理系统
    student_manage = StudentManage()
    student_manage.append_student(stu1)
    student_manage.append_student(stu2)
    student_manage.append_student(stu3)
    student_manage.append_student(stu4)

    # 删除学生信息
    student_manage.remove_student(stu1.name)

    # 通过姓名获取学生信息
    student_manage.get_student_info(stu1.name)

    # 计算所有学生的平均成绩
    print(f"平均成绩{student_manage.get_average_score()}")
